#include<bits/stdc++.h>
using namespace std;
int main(){
	int m , n , a[10010];
	cin >> m;
	for(int i = 1 ; i <= m ; i++){
		cin >> n;
		for(int j = 1 ; j <= n ; j++){
			cin >> a[j];
			a[j] = a[j] + a[j - 1]; 
		}
		int flag = 0;
		for(int j = 1 ; j <= n ; j++){
			int sum1 = 0 , sum2 = 0;
			sum1 = a[j];
			sum2 = a[n] - a[j];
			if(sum1 == sum2){
				cout << "Yes" << endl;
				flag = 1;
				break;
			}
		}
		if(flag == 0){
			cout << "No" << endl;
		}
	}
	return 0;
}
